package com.feinno.urcs.group.pd.upstream.entity;

import com.feinno.superpojo.annotation.Entity;
import com.feinno.superpojo.annotation.Field;
import com.feinno.superpojo.annotation.NodeType;
import com.feinno.urcs.group.GroupConstants;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wuzhiguo on 15-5-14.
 */
@Entity(name = "public-group-list")
public class PublicGroupList extends BaseSuperPojo {

	@Field(id = 1, name = "xmlns", type = NodeType.ATTR)
	private String xmlns = "com:feinno:public-group-list";

	@Field(id = 2, name = "xmlns:xsi", type = NodeType.ATTR)
	private String xmlnsXsi = "http://www.w3.org/2001/XMLSchema-instance";

	@Field(id = 3, name = "grpup")
	private List<PublicGroupListInfo> grpupList;

	public String getXmlns() {
		return xmlns;
	}

	public void setXmlns(String xmlns) {
		this.xmlns = xmlns;
	}

	public String getXmlnsXsi() {
		return xmlnsXsi;
	}

	public void setXmlnsXsi(String xmlnsXsi) {
		this.xmlnsXsi = xmlnsXsi;
	}

	public List<PublicGroupListInfo> getGrpupList() {
		return grpupList;
	}

	public void setGrpupList(List<PublicGroupListInfo> grpupList) {
		this.grpupList = grpupList;
	}

	public static class PublicGroupListInfo extends BaseSuperPojo {
		@Field(id = 1, name = "uri")
		private String uri;

		@Field(id = 2, name = "name")
		private String name;

		@Field(id = 3, name = "isAdmin")
		private boolean isAdmin;

		public boolean getIsAdmin() {
			return isAdmin;
		}

		public void setIsAdmin(boolean isAdmin) {
			this.isAdmin = isAdmin;
		}

		public String getUri() {
			return uri;
		}

		public void setUri(String uri) {
			this.uri = uri;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

}


